//
//  ACHdb.h
//  MansApp
//
//  Created by lanou3g on 15/7/27.
//  Copyright (c) 2015年 ACH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DiaryModel.h"
@interface ACHdb : NSObject

+ (ACHdb*)sharedInstance;

- (void)createTable;

- (NSMutableArray*)showTheTableAll;

- (DiaryModel *)showOneWithDate:(NSString *)date;

- (void)insertDate:(NSString*)date;

//- (void)updataWithDate:(NSString*)date upDiary:(NSAttributedString *)diary;
//
//- (void)updataWithDate:(NSString*)date upDiaryName:(NSString *)diaryName;

- (void)updataWithDate:(NSString*)date upMotif:(NSString *)motif;

- (void)deleteWithDate:(NSString*)date;

-(void)updataWithDate:(NSString*)date upNewDate:(NSString *)newDate;
- (NSMutableArray*)showTheAllTape;

//-(void)updataWithDate:(NSString*)date upTape:(NSString *)tape;
//
//-(void)updataWithDate:(NSString*)date upPicArray:(NSMutableArray *)picArray;

-(void)upDatawithDate:(NSString *)date wtihDiary:(NSAttributedString *)diary diaryName:(NSString *)diaryName tape:(NSString *)tape picArray:(NSMutableArray*)picArray;



@end
